package com.woniuxy.platform.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 流程审批表
 * </p>
 *
 * @author 杨青云
 * @since 2020-09-27
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("APPROVAL")
@ApiModel(value="Approval对象", description="流程审批表")
public class Approval implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "审批单编号")
    @TableId("APPROVAL_ID")
    private String approvalId;

    @ApiModelProperty(value = "关联需要审批的单号，来查找信息")
    @TableField("APPROVAL_MESSAGE")
    private String approvalMessage;

    @ApiModelProperty(value = "判断是什么审批单")
    @TableField("APPROVAL_TYPE")
    private String approvalType;

    @ApiModelProperty(value = "该审批单审批人")
    @TableField("APPROVAL_USER_ID")
    private String approvalUserId;

    @ApiModelProperty(value = "回复内容")
    @TableField("APPROVAL_APCONTENT")
    private String approvalApcontent;

    @ApiModelProperty(value = "责任人")
    @TableField("LAUNCH_USER_ID")
    private String launchUserId;

    @ApiModelProperty(value = "审批状态：0代表正在审批中，1代表审批通过，2代表审批失败")
    @TableField("APPROVAL_STATE")
    private Integer approvalState;

    @ApiModelProperty(value = "创建时间")
    @TableField("CREATE_TIME")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新时间")
    @TableField("UPDATE_TIME")
    private LocalDateTime updateTime;



}
